import request from '@/utils/request'

// 查询材料进度详情列表
export function listMaterialProgressDetails(query) {
  return request({
    url: '/ma/materialProgressDetails/list',
    method: 'get',
    params: query
  })
}

// 查询材料进度详情详细
export function getMaterialProgressDetails(progressDetailsId) {
  return request({
    url: '/ma/materialProgressDetails/' + progressDetailsId,
    method: 'get'
  })
}

// 新增材料进度详情
export function addMaterialProgressDetails(data) {
  return request({
    url: '/ma/materialProgressDetails',
    method: 'post',
    data: data
  })
}

// 修改材料进度详情
export function updateMaterialProgressDetails(data) {
  return request({
    url: '/ma/materialProgressDetails',
    method: 'put',
    data: data
  })
}

// 删除材料进度详情
export function delMaterialProgressDetails(progressDetailsId) {
  return request({
    url: '/ma/materialProgressDetails/' + progressDetailsId,
    method: 'delete'
  })
}
